package practice.annotaion.spring.work;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

@Component
//프록시  객체  생성
@Scope(value =  "prototype",  proxyMode =  ScopedProxyMode.TARGET_CLASS)
public class Worker {
	public  void work(WorkUnit  unit)  {
		System.out.println(toString() +  " work  " +  unit);
		}
}
